package com.gz.moreaseManager.modules.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;


import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author wike
 * @since 2019-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Brand extends Model<Brand> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "brand_id", type = IdType.AUTO)
    private Integer brandId;

    /**
     * 品牌名称
     */
    @TableField("brand_name")
    private String brandName;

    /**
     * 品牌类别
     */
    private Integer type;

    /**
     * 封面图片
     */
    private String url;

    /**
     * 浮动广告路径
     */
    @TableField("advert_url")
    private String advertUrl;

    /**
     * 封面图片对应的base64码
     */
    @TableField(exist = false)
    private String uploadImg;

    /**
     * 状态:是否显示 1:显示，0：不显示
     */
    private Integer status;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 发布时间
     */
    @TableField("release_time")
    private Date releaseTime;

    /**
     * 富文本编辑内容
     */
    @TableField("brand_text")
    private String brandText;

    /**
     * 创建人
     */
    @TableField("create_person")
    private String createPerson;


    @Override
    protected Serializable pkVal() {
        return this.brandId;
    }

}
